import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import { PopoverController } from '@ionic/angular';
import { PopdetailComponent } from '../popover/popdetail/popdetail.component';

@Component({
  selector: 'app-popover',
  templateUrl: './popover.page.html',
  styleUrls: ['./popover.page.scss'],
})
export class PopoverPage implements OnInit {

  constructor(private router: Router,public popoverController: PopoverController) { }

  ngOnInit() {
    
  }


  gotohome(){
    this.router.navigate(['/tabs/tab2'])
  }

  async presentPopover(ev: any) {
    const popover = await this.popoverController.create({
      component: PopdetailComponent,
      event: ev,
      translucent: true
    });
    return await popover.present()
  }

}
